<form class="form-horizontal" role="form" action="{#:U('save_image')#}" method="post" enctype="multipart/form-data">
    <table class="table table-bordered">
        <tr>
            <td class="title"><lang name="upload"></lang></td>
<!--            <td><text name="excel_file" attr-type=file ></text></td>-->
            <td>
                <span class="row-fluid">
                    <div class='edit-face'>
                        
                        <span id="fileQueue"></span><input type="file" id="uploadify" name="uploadify"/>
                        <input type="hidden" name="image" id="image"/>
                    </div>
                </span>
            </td>
        </tr>

        <tr>
            <td style="width:100%;text-align: center;" colspan="2"><img src="{#$image#}" id="img" style="width:50%;"/></td>
        </tr>
        <input type="hidden" name="id" value="{#$id#}"/>
    </table>
</form>
<style type="text/css">
#uploadify {
    background: none repeat scroll 0 0 #f2f2f2;
    border: 1px solid #cccccc;
    float: left;
    margin-left: 10px;
    text-align: center;
}
#user_head {
    border: 1px dashed #cccccc;
    height: 298px;
}
#fileQueue
{
    border:1px #cccccc solid;
    padding:4px;
    float:left;
    width:350px;
    height:28px;
    line-height:22px;
    font-size:14px;
}
#fileQueue .cancel
{
    float:right;
}
#fileQueue .uploadify-progress
{
    margin-top:-20px;
    padding:4px;
    float:left;
    overflow:hidden;
    text-indent: -999px;
    margin-top: -50px;
}
#fileQueue .uploadify-queue-item
{
    border: 1px #cccccc solid;
    padding: 4px;
    float: left;
    width:350px;
    height: 28px;
    line-height: 22px;
    margin-top: -5px;
    margin-left: -5px;
}
#fileQueue .data
{
    padding: 4px;
    float: right;
    height: 28px;
    line-height: 22px;
    margin-top: -4px;
}
a{
    text-decoration: none;
}
.uploadify-button-text{
    cursor:pointer;
}
</style>